package com.getword.web.controller.teacher;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

@Controller
@RequestMapping("/teacher/video")
public class VideoController {
    @GetMapping("/index.html")
    public String index(HttpServletRequest request){
        request.setAttribute("navi", "video");
        return "teacher/video/index.html";
    }

    @GetMapping("/detail.html")
    public String detail(HttpServletRequest request){
        request.setAttribute("navi", "video");
        return "teacher/video/detail.html";
    }

    @GetMapping("/manage.html")
    public String manage(HttpServletRequest request){
        request.setAttribute("navi", "articleManage");
        return "teacher/video/manage.html";
    }
}
